package innerClass.非静态成员内部类;

import lombok.Data;

/**
 * 非静态内部类
 */
@Data
public class Outer {

    private Integer age;

    public class Inner {
        public void print() {
            System.out.println(age);
        }
    }

    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.setAge(10);
        Inner inner = outer.new Inner();
        inner.print();
    }

}
